/*  1:   */ package org.jetbrains.jps.model.serialization.artifact;
/*  2:   */ 
/*  3:   */

import org.jdom.Element;
import org.jetbrains.jps.model.artifact.elements.JpsPackagingElement;

/*  4:   */
/*  5:   */ 
/*  6:   */ public abstract class JpsPackagingElementSerializer<E extends JpsPackagingElement>
/*  7:   */ {
/*  8:   */   private final String a;
/*  9:   */   private final Class<? extends E> b;
/* 10:   */   
/* 11:   */   protected JpsPackagingElementSerializer(String paramString, Class<? extends E> paramClass)
/* 12:   */   {
/* 13:29 */     this.a = paramString;
/* 14:30 */     this.b = paramClass;
/* 15:   */   }
/* 16:   */   
/* 17:   */   public String getTypeId()
/* 18:   */   {
/* 19:34 */     return this.a;
/* 20:   */   }
/* 21:   */   
/* 22:   */   public Class<? extends E> getElementClass()
/* 23:   */   {
/* 24:38 */     return this.b;
/* 25:   */   }
/* 26:   */   
/* 27:   */   public abstract E load(Element paramElement);
/* 28:   */   
/* 29:   */   public abstract void save(E paramE, Element paramElement);
/* 30:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.serialization.artifact.JpsPackagingElementSerializer

 * JD-Core Version:    0.7.0.1

 */